﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using FrameWork;
using FrameWork.Components;
using FrameWork.WebControls;

namespace FrameWork.web.Module.FrameWork.SystemApp.MyTest
{
    public partial class Add : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string s = this.Request.QueryString["CMD"];
                if (s == "" || s == "New")
                {
                    HeadMenuButtonItem Bm0 = new HeadMenuButtonItem();
                    Bm0.ButtonUrl = "?CMD=New";
                    Bm0.ButtonPopedom = PopedomType.New;
                    Bm0.ButtonName = "新增";
                    HeadMenuWebControls1.ButtonList.Add(Bm0);

                    HeadMenuButtonItem Bm1 = new HeadMenuButtonItem();
                    Bm1.ButtonUrl = "?CMD=Edit";
                    Bm1.ButtonPopedom = PopedomType.New;
                    Bm1.ButtonName = "修改";
                    HeadMenuWebControls1.ButtonList.Add(Bm1);
                    this.txt.Visible = false;
                    this.lab.Visible = true;

                }
                if (s == "Edit")
                {
                    HeadMenuButtonItem Bm0 = new HeadMenuButtonItem();
                    Bm0.ButtonUrl = "?CMD=New";
                    Bm0.ButtonPopedom = PopedomType.New;
                    Bm0.ButtonName = "新增";
                    HeadMenuWebControls1.ButtonList.Add(Bm0);

                    HeadMenuButtonItem Bm1 = new HeadMenuButtonItem();
                    Bm1.ButtonUrl = "?CMD=Edit";
                    Bm1.ButtonPopedom = PopedomType.New;
                    Bm1.ButtonName = "修改";
                    HeadMenuWebControls1.ButtonList.Add(Bm1);
                    this.txt.Visible = true;
                    this.lab.Visible = false;

                }

            }

        }
    }
}
